﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FacialClub.Models.Entities.Treatment>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                TreatmentId
            </th>
            <th>
                TreatmentTypeId
            </th>
            <th>
                Title
            </th>
            <th>
                Description
            </th>
            <th>
                Duration
            </th>
            <th>
                Costing
            </th>
            <th>
                ProductServiceCode
            </th>
            <th>
                IsCustomerVisible
            </th>
            <th>
                IsTaxable
            </th>
            <th>
                IsActive
            </th>
            <th>
                CreatedDate
            </th>
            <th>
                ModifiedDate
            </th>
            <th>
                UserCreated
            </th>
            <th>
                UserModified
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.TreatmentId }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.TreatmentId })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.TreatmentId })%>
            </td>
            <td>
                <%: item.TreatmentId %>
            </td>
            <td>
                <%: item.TreatmentTypeId %>
            </td>
            <td>
                <%: item.Title %>
            </td>
            <td>
                <%: item.Description %>
            </td>
            <td>
                <%: item.Duration %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Costing) %>
            </td>
            <td>
                <%: item.ProductServiceCode %>
            </td>
            <td>
                <%: item.IsCustomerVisible %>
            </td>
            <td>
                <%: item.IsTaxable %>
            </td>
            <td>
                <%: item.IsActive %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.CreatedDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.ModifiedDate) %>
            </td>
            <td>
                <%: item.UserCreated %>
            </td>
            <td>
                <%: item.UserModified %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

